package com.yqg.protection.controller.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.protection.cover.UserStateConverter;
import com.yqg.protection.cover.WhetherConverter;
import lombok.Data;

import java.util.Date;

/**
 * projectName:xf-service1
 * author:zxf
 * time:2024/10/9 17:19
 * description:
 */
@Data
public class ImportUserDto {

    @ExcelProperty(value = "用户名(必填)", index = 0)
    private String username;

    @ExcelProperty(value = "密码(必填)", index = 1)
    private String password;

    @ExcelProperty(value = "组织ID(必填)",index = 2)
    private Long organization;

    @ExcelProperty(value = "是否监管全部下级单位(是/否)(必填)",index = 3,converter = WhetherConverter.class)
    private String isAllClient;

    @ExcelProperty(value = "监管单位(注：如果监管全部下级单位，可为空)",index = 4)
    private String clientIdsStr;

    @ExcelProperty(value = "用户角色(必填)", index = 5)
    private Integer role;

    @ExcelProperty(value = "创建时间", index = 6)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ExcelProperty(value = "修改时间", index = 7)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ExcelProperty(value = "状态(必填)", index = 8, converter = UserStateConverter.class)
    private String state;

    @ExcelProperty(value = "监管时长(小时)", index = 9)
    private Long superviLength;

    @ExcelProperty(value = "电话", index = 10)
    private String telephone;

    @ExcelProperty(value = "安全责任人(必填)", index = 11)
    private String safeResponMan;

    @ExcelProperty(value = "安全管理人(必填)", index = 12)
    private String safeManager;

    @ExcelProperty(value = "负责人电话(必填)", index = 13)
    private String safeTelephone;

    @ExcelProperty(value = "顶部配置(必填)", index = 14)
    private String configure;

    @ExcelProperty(value = "邮箱", index = 15)
    private String email;

    @ExcelProperty(value = "appkey", index = 16)
    private String appkey;

    @ExcelProperty(value = "secret", index = 17)
    private String secret;

    @ExcelProperty(value = "url", index = 18)
    private String url;
}
